bill javascript