Fix some js stuff