adds some Javascript