Fixed javascript calendar not being loaded