Fixed a js bug and removed a wierd css transition