Javascript Push Value To Front Of Array In Java