Switched to javascript