Working initial JavaScript interface