Adjusted spotbox js