Fixed little bug with javascript actions