Prevent double submission; include javascript