javascript variable initialization, oops