Moved OneLiner into javascript file