adjusted js in slim