Fixed javascript in mockups