added index and message js files