Add javascript required alert. Closes #2