Supply loading_timeout attribute for jsinput tag.

(cherry picked from commit b7ee0233c9a370428d7473e8ce7c7d73fc471519)
Addressed comments.

(cherry picked from commit f85b0d0bc23ff4458a783302f3a6900bb08619e9)
Add missing endif in crystallography mako template

(cherry picked from commit 7dbea40f84c14a69b0cacca847996780746c8aa8)