Part 1 of Javascript Hell