Fixed syntax issues with smethie's javascript.