quick fix to js