Add core js functionality